home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Day Cry
/
Day Cry CD.bin
/
oh_towns
/
ein
/
sources
/
einlib.lzh
/
LIBSRC.LZH
/
EIN_FL03.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-18
|
2KB
|
73 lines
/*<Header>==============================================================
*
* FILE MANAGER / "EIN_FL03.C"
*
* [ EIN(tm) project : âtâ@âCâïæÇì∞òΓÅòè╓ÉöîQ ]
*
* COPYRIGHT Nam 1994, All rights reserved.
*
*-----------------------------------------------------------------------
* V1.0L01â┐ 94.07.07/Nam âvâìâgâ^âCâv
*</Header>==============================================================*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <snd.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
#define EIN_FILE
#include "..\eintm.h"
#ifndef NOERR
#define NOERR (0)
#endif
#ifndef ERROR
#define ERROR (1)
#endif
/* from EIN_ASM1.ASM */
extern void EIN_setVector( unsigned long * );
extern void EIN_resetVector( unsigned long * );
/*<Func>================================================================
* int EIN_getDiskFree( int drv )
*
* üyèT ùvüz ÄwÆΦâhâëâCâué╠ï≤é½ùeù╩é≡ò╘é╡é▄é╖üB
*
* üyï@ ö\üz Æ╩Åφé╠'FM_getDiskFreeSize()'é╞ô»ùlé╔Ägùpé┼é½é▄é╖üB
* int24hânâôâhâëé≡âtâbâNé╡é─éóéΘé╠é┼üAâhâëâCâué╔âAâNâZâX
* é┼é½é╚é⌐é┴é╜ÅΩìçé┼éαâVâFâïé╠âAâëü[âgé≡Åoé╡é▄é╣é±üB
*
* üyôⁿ ù═üz
* drv : ùeù╩é≡Æ▓é╫é╜éóâhâëâCâuö╘ìå(ëpæσò╢ÄÜ)
* [ùß] size = EIN_getDiskFree('A');
* size = EIN_getDiskFree( EIN_fnameDrv("E:\\"));
*
* üyÅo ù═üz
*
* üyè╓ÉöÆlüz >=0 É│ÅφÅIù╣(byteÉö)
* < 0 ê┘ÅφÅIù╣(âhâëâCâué╔âAâNâZâXòsë┬)
*
* üyÆì ê╙üz
*
* üyÄQ Å╞üz
*
*-----------------------------------------------------------------------
* V11L10 1994.07.07/Nam
*</Func>==============================================================*/
int EIN_getDiskFree( int drv )
{
unsigned long vect[3]; /* int24hânâôâhâëé╠æ▐ö≡ùp */
register int ret;
EIN_setVector( vect ); /* int24é≡âtâbâN */
ret = FM_GetDiskFreeSize( drv );
EIN_resetVector( vect ); /* int24ânâôâhâëé≡ò£ïA */
return ret;
}